package com.smfx.yxt.utils;

import com.smfx.yxt.common.Const;
import com.smfx.yxt.view.TermView;
import com.smfx.yxt.wechat.utils.WechatGlobalMap;

public class CommonUtil {
	
	public static String getGradeName(int grade) {
		TermView view = (TermView) WechatGlobalMap.get(Const.CACHE_TERM).getValue();
		return view.getGradeName(grade);
	}

	public static String getGradeClass(int grade, int clazz) {
		TermView view = (TermView) WechatGlobalMap.get(Const.CACHE_TERM).getValue();
		String gradeText = view.getGradeName(grade);
		return gradeText + "（ "+ clazz +"）班";
	}
	
}
